<?php

	/*	
		START---------------------------------------------------------------------------------
	
		Name	: clsTransform.php
		Version	: 1.0
		Author	: Henrik Andersen
		Company : Linnaeus University, Media Technology
		Mail	: Henrik.Andersen@lnu.se
		Date	: 2010-11-22 11:30 CET
		
		DESCRIPTION----------------------------------------------------------------------------
		
		A transformed object contains information in which angles and sizes of objects to 
		be displayed in.
		
		SYNTAX---------------------------------------------------------------------------------
		
		The following list contains the public functions that can be used externally.
		
		Method Name:							Short Description:
		
		* setDimention(false, 90, 1.0)			Set transform data.			
		* getDimention()						get transform data.
		
		TO DO'S--------------------------------------------------------------------------------
		
		END------------------------------------------------------------------------------------
	*/
	
	// IMPORT
		
	// PUBLIC CLASS
	
	class clsTransform
	{				
		// PUBLIC VARIABELS
		
		/*	
			All the variables are mandatory and must obtain a 
			value for the system to function properly.
		*/
		
		public $rel		= false;
		public $angle	= 0;
		public $scale	= 1.0;
				
		// CONSTRUCTOR FUNCTION
		
		/*------------------------------------------------------------------------------------
		__construct:									
		This is the constructor function and it does nothing.
		------------------------------------------------------------------------------------*/
		public function __construct()
		{
			// NOTHING YET..
		}
		
		// PUBLIC FUNCTIONS
		
		/*------------------------------------------------------------------------------------
		setDimention:									
		Simple SET method to easily assign data to the object.
		
		!bolRel			Boolean		If the object is always going to look at the user no 
									matter the angle.
		!intAngle		Integer		The angel of the object.
		!decScale		Decimal		The scale of the object.
		------------------------------------------------------------------------------------*/
		public function setDimention($bolRel, $intAngle, $decScale)
		{
			$this->rel	 = $bolRel;
			$this->angle = $intAngle;
			$this->scale = $decScale;
		}
		
		/*------------------------------------------------------------------------------------
		getDimention:									
		Simple GET method to receive information about the object.
		
		@return		Object		An objekt containing An object containing information about 
								the object's "transformation" data.
		------------------------------------------------------------------------------------*/
		public function getDimention()
		{
			$objDimention			= new stdClass();
			$objDimention->rel		= $this->rel;
			$objDimention->angle	= $this->angle;
			$objDimention->scale	= $this->scale;
			
			return $objDimention;
		}
	}

?>